﻿using System.Data.Common;

namespace SimpleORM
{
    public class DbCSQLServerParameter : DbCParameter
    {
        #region Ctor

        public DbCSQLServerParameter()
            : base()
        {
        }

        public DbCSQLServerParameter(DbParameter parameter)
            : base(parameter)
        {
        }

        #endregion

        #region Methods

        #region Methods - Override

        protected override string OnGetValueString()
        {
            //if (Value is Geometry)
            //    return string.Format("geometry::STGeomFromText('{0}', {1})",
            //                         ((Geometry)Value).GeometryText,
            //                         ((Geometry)Value).Srid);

            return base.OnGetValueString();
        }

        #endregion

        #endregion
    }
}
